Skip to content

Conversation

felipecsl
Copy link
Contributor

@felipecsl felipecsl commented Feb 12, 2025


labels: mergeable

Fixes: FF-3993

Motivation and Context

Implement EppoAssignmentLogger for seamless Eppo-managed assignment logging.

Description

How has this been tested?

Wrote tests

@felipecsl felipecsl requested review from aarsilv and petzel February 12, 2025 23:28
@felipecsl felipecsl changed the title feat(events): [WIP] New API `EppoAssignmentLogger feat(events): [WIP] New API EppoAssignmentLogger Feb 12, 2025
@felipecsl felipecsl marked this pull request as ready for review February 21, 2025 19:55
@felipecsl felipecsl changed the title feat(events): [WIP] New API EppoAssignmentLogger feat(events): New API EppoAssignmentLogger Mar 5, 2025
@felipecsl
Copy link
Contributor Author

@petzel PTAL

Copy link
Contributor

@petzel petzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The auto assignment source creation logic expects the fields of the event to match those of the IAssignmentEvent, in snake case when applicable. I added suggestions for each field that needs to be updated.

Once those are applied, LGTM 🚢

experiment: 'experiment-abc',
variant: 'control',
entityId: 456,
holdoutKey: 'holdout-xyz',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that holdoutKey exists in other tests, but this field does not exist on IAssignmentEvent

Copy link
Contributor Author

@felipecsl felipecsl Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I mentioned this in a code comment, it's confusing. this is the line:

https://github.com/Eppo-exp/js-sdk-common/blob/main/src/assignment-logger.ts#L48

IAssignmentEvent can hold arbitrary key/value pairs from extraLogging in FlagEvaluation

@felipecsl felipecsl merged commit 0361a5c into main Mar 6, 2025
8 checks passed
@felipecsl felipecsl deleted the feat--eppo-assignment-logger branch March 6, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants